local PLUGIN = {}
PLUGIN.Title = "PlayX"
PLUGIN.Description = "Allows players to turn on or off playx clientside."
PLUGIN.Author = "Matt J"
PLUGIN.ChatCommand = "playx"
PLUGIN.Usage = "[1/0]"
PLUGIN.Privileges = { "PlayX" }

function PLUGIN:Call( ply, args )
	if ply:EV_HasPrivilege( "PlayX" ) then
		if args[1] == "0" then
			ply:ConCommand( "playx_enabled 0" )
			evolve:Notify( ply, evolve.colors.white, "PlayX is now Off" )
		else
			ply:ConCommand( "playx_enabled 1" )
			evolve:Notify( ply, evolve.colors.white, "PlayX is now On" )
		end
	else
		evolve:Notify( ply, evolve.colors.red, evolve.constants.notallowed )
	end
end

evolve:RegisterPlugin( PLUGIN )